<template>
    <div class="box">

    </div>
</template>
<style scoped lang="less">
.box {
    animation-name: bgChange;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    height: 100px;
    width: 100px;
    background-color: black;
    animation-play-state: paused;
    &:hover{
        animation-play-state: running;
    }
}


@keyframes bgChange {
    0% {
        background-color: black;

    }
    50% {
        background-color: blue;
        animation-timing-function: linear;
    }

    100% {
        background-color: aliceblue;
    }
}
</style>